<%@page import="com.study.lession.contant.Constants"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	Object user = session.getAttribute(Constants.SESSION_KEY);
	if( null != user ) {
		request.setAttribute("msg", "列表");
		request.getRequestDispatcher("contact/list.jsp").forward(request, response);
	}
	
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
 		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>登录</title>
		
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

        <!--font-family-->
		<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&amp;subset=devanagari,latin-ext" rel="stylesheet">
        
        <!-- For favicon png -->
		<link rel="shortcut icon" type="image/icon" href="resources/logo/favicon.png"/>
		
        <!--font-awesome.min.css-->
        <link rel="stylesheet" href="resources/css/font-awesome.min.css">
		
		<!--animate.css-->
        <link rel="stylesheet" href="resources/css/animate.css">
		
        <!--bootstrap.min.css-->
        <link rel="stylesheet" href="resources/css/bootstrap.min.css">
		
		<!-- bootsnav -->
		<link rel="stylesheet" href="resources/css/bootsnav.css" >	
        
        <!--style.css-->
        <link rel="stylesheet" href="resources/css/style.css">
        
        <!--responsive.css-->
        <link rel="stylesheet" href="resources/css/responsive.css">
        
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		
        <!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
	</head>
	<body>		
		<!-- signin end -->
		<section class="signin">
			<div class="container">

				<div class="sign-content">
					<h2 style="color:red;">登录 </h2>
					<div class="row">
						<div class="col-sm-12">
							<div class="signin-form">
								<form id="loginForm" action="login.action" method="post">
									<div class="form-group">
									    <label for="">姓名</label>
									    <input type="text" class="form-control" name="stuname" id="stuname" placeholder="请输入您的登录账号">
									</div><!--/.form-group -->
									<div class="form-group">
										<label for="">密码</label>
									    <input type="password" class="form-control" name="stupassword" id="stupassword" placeholder="请输入您的密码">
									</div><!--/.form-group -->
									<div class="signin-footer">
										<button type="submit" class="btn signin_btn">
										登录
										</button>
										<p class="text-center">
											没有一个账号 ?
											<a href="pages/register.jsp">注册</a>
										</p>
									</div><!--/.signin-footer -->
								</form><!--/form -->
							</div><!--/.signin-form -->
						</div><!--/.col -->
					</div><!--/.row -->
			
				</div><!--/.sign-content -->

			</div><!--/.container -->

		</section><!--/.signin -->
		
		<!-- signin end -->


		 <!-- Include all js compiled plugins (below), or include individual files as needed -->

		<script src="resources/js/jquery.js"></script>
        
        <!--modernizr.min.js-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
		
		<!--bootstrap.min.js-->
        <script src="resources/js/bootstrap.min.js"></script>
		
		<!-- bootsnav js -->
		<script src="resources/js/bootsnav.js"></script>
		
		<!-- jquery.sticky.js -->
		<script src="resources/js/jquery.sticky.js"></script>
		<script src="resources/js/jquery.easing.min.js"></script>
		
        
        <!--Custom JS-->
        <script src="resources/js/custom.js"></script>
		<script src="resources/js/jquery.validate.min.js"></script>
		<script src="resources/js/login.js" charset="utf-8"></script>
    </body>
</html>